/*
 * Copyright 2000-2014 JetBrains s.r.o.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.grid-top {
    display: flex;
    min-height: 0;
    flex-grow: 1;
    flex-direction: row;
}

#grid-nav {
    overflow: hidden;
    white-space: nowrap;
    background: #d7d7d7;
    font-size: 14px;
    border-bottom: 1px solid #969696;
    border-top-right-radius: 4px;
    border-top-left-radius: 4px;
    min-height: 21px;
}

.grid-nav-item {
    cursor: default;
    display: inline-block;
    position: relative;
    background: #e8e8e8;
    padding: 3px 5px 3px 2px;
    color: #3164a0;
    margin-left: 8px;
}

.grid-nav-item:first-child {
    margin-left: 0;
    padding-left: 10px;
}

.grid-nav-item:after {
    content: '';
    display: block;
    position: absolute;
    top: 1px;
    left: 100%;
    width: 0;
    height: 0;
    border: 9px solid transparent;
    border-right: 0;
    border-left: 6px solid #e8e8e8;
}

.grid-nav-item:before {
    content: '';
    display: block;
    position: absolute;
    background: inherit;
    padding-right: 1px;
    left: 100%;
    top: 0;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-right: 0;
    border-left: 7px solid #a8a8a8;
}

.grid-nav-item:nth-last-child(2):before {
    background: none;
}

.grid-nav-item:last-child {
    background: none;
    color: black;
}

.grid-nav-item:last-child:before {
    display: none;
}

.grid-nav-item:last-child:after {
    display: none;
}

#progress-bar {
    background-color: #35B056;
    height: 10px;
}

#progress-bar .incomplete-overlay{
    position: absolute;
    background: white;
    opacity: 0.5;
    right: 0;
    height: 10px;
}

#workspace {
    flex-grow: 1;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    position: relative;
}

.CodeMirror {
    line-height: 1.4;
    font-family: menlo, consolas, monospace;
    font-size: 12px;
}

.CodeMirror-linenumber {
    min-width: 0;
    text-align: center;
}

.CodeMirror-activeline-background {
    background: #ffffd7;
!important;
}

#editordiv {
    flex-grow: 1;
    display: flex;
    position: relative;
    box-sizing: border-box;
    border-top: 1px solid #969696;
}

#editordiv .CodeMirror {
    height: 100%;
    width: 100%;
    position: absolute;
}

#editordiv .CodeMirror-scroll {
    height: 100%;
}

#editordiv .CodeMirror-lines {
    padding: 0;
}

#editordiv span.CodeMirror-matchingbracket {
    color: inherit;
    background-color: #99ccff;
}

.ERROR {
    color: #ff0000 !important;
}

.errors-and-warnings-gutter {
    width: 14px;
    margin-left: 2px;
}

.ERRORgutter {
    height: 12px;
    width: 12px;
    margin-top: 2px;
    background: url("/static/images/icons_all_sprite.svg") no-repeat -150px -500px;
}

.WARNINGgutter {
    height: 12px;
    width: 12px;
    margin-top: 2px;
    background: url("/static/images/icons_all_sprite.svg") no-repeat -150px -600px;
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .ERRORgutter {
        background-image: url("/static/images/icons_all_sprite@2x.png");
        background-size: 250px 900px;
    }

    .WARNINGgutter {
        background-image: url("/static/images/icons_all_sprite@2x.png");
        background-size: 250px 900px;
    }
}

.red_wavy_line {
    background: url(/static/images/wavyline-red.gif) repeat-x 100% 100% !important;
    padding-bottom: 2px;
}

.green_wavy_line {
    background: url(/static/images/wavyline-green.gif) repeat-x 100% 100% !important;
    padding-bottom: 2px;
}

.ui-button-disabled {
    opacity: 0.5;
}

#workspace-overlay {
    position: absolute;
    text-align: center;
    display: none;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: #f7f7f7;
    border-top-right-radius: 4px;
}

#workspace-overlay span {
    font-size: 18px;
    position: relative;
    color: #9e9e9e;
    top: 50%;
}

.CodeMirror-dialog {
    padding: 0;
    background: none;
}

.next-task-dialog {
    font-family: "Open Sans", Helvetica, Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    z-index: 15;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 7px 11px;
    font-size: 14px;
}

.next-task-dialog .ok.icon {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
    top: 3px;
    background: url("/static/images/icons_all_sprite.svg") -100px -650px;
}

.next-task-dialog .text {
    cursor: default;
    display: inline-block;
    font-size: 14px;
    padding-left: 5px;
    padding-right: 20px;
}

.next-task-dialog .next-task.button {
    cursor: pointer;
    display: inline-block;
    background-color: #35b056;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 14px;
    border: 0;
    color: white;
    outline: none;
}

.next-task-dialog .close.icon {
    position: relative;
    float: right;
    width: 16px;
    height: 16px;
    top: 6px;
    background: url("/static/images/icons_all_sprite.svg") -100px -550px;
}

.CodeMirror-gutter-wrapper {
    height: auto !important;
}

.task-help {
    padding-top: 5px;
    padding-left: 15px;
    padding-right: 15px;
    font-family: 'Open Sans';
    border-bottom: 1px solid #969696;
    margin-bottom: 4px;
}

.task-help .buttonset {
    padding-bottom: 10px;
}

.task-help .buttonset .button {
    margin-right: 5px;
    width: 75px;
    text-align: center;
}

.task-help-wrapper {
    background-color: white;
    padding-bottom: 4px;
}

.task-help {
    font-size: 14px;
}

.task-help ul {
    line-height: 24px;
}

.task-help ul {
    margin-bottom: 15px;
    margin-left: 30px;
}

.task-help h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.task-help p {
    margin-bottom: 10px;
}

.task-help code{
    font-family: "Consolas", monospace;
}

.task-help p > code {
    background-color: #efefef;
    border-radius: 4px;
    padding: 2px;
}

.task-help pre code {
    background-color: #f7f7f7;
    white-space: pre-wrap;
    margin-bottom: 10px;
    padding: 5px 25px 5px 15px;
    display: inline-block;
    margin-right: 21px;
}

.taskWindow {
    border-top: 1px solid #0000FF;
    border-bottom: 1px solid #0000FF;
}

.taskWindow-start {
    border-left: 1px solid #0000FF;
}

.taskWindow-end {
    border-right: 1px solid #0000FF;
}

